/*
 * AllocationWay_School。java
 *
 * Created Date: 2014年12月4日
 *				
 * Copyright (c)  Centling Technologies Co., Ltd.
 *
 * This software is the confidential and proprietary information of
 *  Centling Technologies Co., Ltd. ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in accordance
 * with the terms of the license agreement you entered into with
 * Centling Technologies Co., Ltd.
 */

package com.centling.bluecollar.customer.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.centling.bluecollar.system.entity.AllocationWay;


/**
 * @author Ted.ma
 * @version  <br>
 * <p>类的描述</p>
 */
@Entity
@Table(name="school_AllocationWay")
public class School_AllocationWay {
	private String id;
	private SchoolCustomer schoolCustomer;
	private AllocationWay allocationWay;
	
	/**
	 * @return the id
	 */
	@GenericGenerator(name = "idGenerator", strategy = "uuid")
	@Id
	@GeneratedValue(generator = "idGenerator")
	@Column(name = "id", unique = true, nullable = false, length = 50)
	public String getId() {
	
		return id;
	}
	
	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
	
		this.id = id;
	}
	
	/**
	 * @return the schoolCustomer
	 */
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="schoolcustomerid")
	public SchoolCustomer getSchoolCustomer() {
	
		return schoolCustomer;
	}
	
	/**
	 * @param schoolCustomer the schoolCustomer to set
	 */
	public void setSchoolCustomer(SchoolCustomer schoolCustomer) {
	
		this.schoolCustomer = schoolCustomer;
	}
	
	/**
	 * @return the allocationWay
	 */
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="AllocationWayid")
	public AllocationWay getAllocationWay() {
	
		return allocationWay;
	}
	
	/**
	 * @param allocationWay the allocationWay to set
	 */
	public void setAllocationWay(AllocationWay allocationWay) {
	
		this.allocationWay = allocationWay;
	}
	
	
}
